package com.example.administrator.ygddriver.set.my;

import android.view.View;

import com.example.administrator.ygddriver.R;
import com.example.administrator.ygddriver.base.BaseActivity;
import com.example.administrator.ygddriver.tool.SimpleToolbar;

public class MyActivity extends BaseActivity {
    private SimpleToolbar simpleToolbar;

    @Override
    public int initLayout() {
        return R.layout.activity_my;
    }

    @Override
    public void initView() {
        simpleToolbar = findViewById(R.id.activity_my_stb);
    }

    @Override
    public void initDate() {
        setSimpleToolbar();
    }
    private void setSimpleToolbar() {
        simpleToolbar.setMainTitle("个人资料");
        simpleToolbar.setMainTitleColor("#000000");
        simpleToolbar.setBackIv(R.mipmap.left_title);
        simpleToolbar.setToolColor("#ffffff");
        simpleToolbar.setBackIvClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }
}
